Q: I switched from using OpenPort to using CreateNewPort , just like the Carbon Specification told me to. Why is my application crashing?
A: One possible reason is that OpenPort created a black and white port (GrafPort ), while CreateNewPort creates a color port (CGrafPort ). Make sure to revise your code to handle the change, especially if you access the pixels directly.
Q: But, I really need to use a black and white port. What can I do?
A: Create and use a 1-bit deep GWorld . QuickDraw calls that used to expect a GrafPort (or BitMap ) have been modified to accept a 1-bit deep GWorld (or PixMap ).
|